﻿// Decompiled with JetBrains decompiler
// Type: System.Web.Razor.Generator.CodeWriterExtensions
// Assembly: System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
// MVID: 682513D6-F37E-48AC-9909-F3EE103CFF14
// Assembly location: D:\Project\Idea\无人机外网\uav\客户端工程\排查工具\bin\Release\System.Web.Razor.dll

using System.Globalization;
using System.Web.Razor.Text;

namespace System.Web.Razor.Generator
{
  internal static class CodeWriterExtensions
  {
    public static void WriteLocationTaggedString(
      this CodeWriter writer,
      LocationTagged<string> value)
    {
      writer.WriteStartMethodInvoke("Tuple.Create");
      writer.WriteStringLiteral(value.Value);
      writer.WriteParameterSeparator();
      writer.WriteSnippet(value.Location.AbsoluteIndex.ToString((IFormatProvider) CultureInfo.CurrentCulture));
      writer.WriteEndMethodInvoke();
    }
  }
}
